package ds.mybatis.test.service;

import ds.mybatis.test.dao.UserDAO;
import ds.mybatis.test.entity.User;
import org.springframework.transaction.annotation.Transactional;

@Transactional
public class UserServiceImpl implements UserService {
    private UserDAO userDao;

	public UserDAO getUserDao(){
		return userDao;
	}

	public void setUserDao(UserDAO userDao){
		this.userDao = userDao;
	}

	public void save(User user){
		userDao.save(user);
	}
}
